FROM openjdk:8-jdk-alpine
RUN mkdir /app
WORKDIR /app
ADD target/epms-feedback-1.0.0.jar .
RUN chmod -R 777 /app && mkdir /app/log
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
EXPOSE 9091
CMD ["sh", "-c", "java -jar -Dfile.encoding=utf-8 epms-feedback-1.0.0.jar >./log/log.out 2>&1"]